package cn.edu.tju.elm.controller;

public class CartRequest {
    private Food food;
    private Integer quantity;

    public CartRequest() {}

    public CartRequest(Food food, Integer quantity) {
        this.food = food;
        this.quantity = quantity;
    }

    public Food getFood() {
        return food;
    }

    public void setFood(Food food) {
        this.food = food;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public static class Food {
        private Integer id;

        public Food() {}

        public Food(Integer id) {
            this.id = id;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }
    }
}